package com.shujia.wyh.day08;

import java.util.Random;

public class RandomDemo1 {
    public static void main(String[] args) {
        //需求：生成1-100之间的随机数
        Random random = new Random();
        int i = random.nextInt(101);
        System.out.println(i);
    }
}
